import request from '@/utils/request'

export function test1() {
    request.get('/test').then(response => {
        console.log('get1', response)
    }).catch(error => {
        console.log('error', error)
    })
}

export function test2() {
    request({
        url: '/test',
        method: 'GET',
    }).then(response => {
        console.log('get2', response)
    }).catch(error => {
        console.log(error)
    })
}

export function getList() {
    const req = request({
        url: '/test',
        method: 'GET'
    })
    return req
}